import request from '@/utils/request'

//查询全部设备申请中间表
export const findDevicePatientAssociation = () => {
  return request({
    url: `/admin/zhou/devicePatientAssociation/findDevicePatientAssociation`,
    method: 'get'
  })
}

// 申请设备
export const SaveDevicePatientAssociation = (data) => {
  return request({
      url: '/admin/zhou/devicePatientAssociation/saveDevicePatientAssociation',
      method: "post",
      data
  })
}

export const updateSid = (id) => {
  return request({
    url: '/admin/zhou/devicePatientAssociation/updateSid/' + sid,
    method: 'delete'
})
}

export const updateIid = (id) => {
    return request({
      url: '/admin/zhou/devicePatientAssociation/updateIid/' + iid,
      method: 'delete'
  })
  }

  export const updateAid = (id) => {
    return request({
      url: '/admin/zhou/devicePatientAssociation/updateAid/' + aid,
      method: 'delete'
  })
  }

  export const updateJid = (id) => {
      return request({
        url: '/admin/zhou/devicePatientAssociation/updateJid/' + jid,
        method: 'delete'
    })
    }